﻿layui.use(['form'], function () {
    form = layui.form;
    form.render();

    /* 提交 */
    form.on('submit(editBaseMenu)', function (data) {
        let url = "/base/menu/" + data.field.id;
        $.http.putAjax(url, data.field, function (res) {
            $.http.res(res, function (res) {
                parent.initTable();
                parent.parent.initTree();
                layer.alert(res.msg, {icon: 6}, function () {
                    $.modal.close();
                });
            })
        })
    });

});